//
//  TableViewCell.h
//  记账本
//
//  Created by lirilu on 15/3/2.
//  Copyright (c) 2015年 glirlu@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Account.h"

@class TableViewCell,Account;
@protocol TableViewCellDelegate <NSObject>

@optional
- (void)accountChange:(Account*)accountData;

@end

@interface TableViewCell : UITableViewCell<UITextFieldDelegate>

+ (BOOL) regestNib:(UITableView*) tabelView Identifier:(NSString *)identifier;
+ (TableViewCell*) getCell:(UITableView*) tableView Account:(Account*)data delegate:(id<TableViewCellDelegate>)delegate;

@property (weak, nonatomic) IBOutlet UILabel *payMode;
@property (weak, nonatomic) IBOutlet UITextField *mark;
@property (weak, nonatomic) IBOutlet UILabel *money;
@property (weak, nonatomic) IBOutlet UILabel *date;
@property (weak, nonatomic) IBOutlet UIImageView *outOrInPicture;
@property(retain,nonatomic) Account *accountData;
@property(assign,nonatomic) id<TableViewCellDelegate> delegate;

@end
